<div class="yx-cnt-box yx-praise-content yx-radius2" style="margin-bottom: 10px;">
    <div class="yx-praise-box">
        <h3 class="yx-menubar">好评率统计 > <a href="<?= \common\components\helpers\Fun::url(['positive/index']) ?>">机构列表</a>
            > <a href="<?= \common\components\helpers\Fun::url(['positive/indexteacher','mechanic_id'=>$teacher['mechanic_id']]) ?>">教师列表</a> > <a
                    href="#">家长评价详情</a></h3>
        <a href="<?= \common\components\helpers\Fun::url(['positive/indexteacher','mechanic_id'=>$teacher['mechanic_id']]) ?>">
            <button type="button" data-toggle="button" class="btn yx-back-list yx-radius5">返回上级列表</button>
        </a>
        <div class="yx-statistics yx-bgf7f7f7">
            <div class="yx-add"><span class="yx-tab yx-bg88abda yx-floatl">累计</span>
                <h4 class="yx-teacher-praise yx-teacher-praise3 yx-floatl"><?= $teacher['name'] ?>老师好评率详情：<span
                            class="yx-praise-rate">92.4%</span></h4>
                <h4 class="yx-teacher-praise yx-teacher-praise3 yx-floatl"><img src="images/parent.jpg"/>家长满意度：<span
                            class="yx-praise-rate"><?= $teacher_all_satisfy ?>%</span></h4>
                <h4 class="yx-teacher-praise yx-teacher-praise3 yx-floatl"><img src="images/teacher.jpg">班主任考核：<span
                            class="yx-praise-rate">22.9%</span></h4>
                <div class="yx-clear"></div>
            </div>
            <div class="yx-this-month"><span class="yx-tab yx-bg78dd8c yx-floatl">当月</span>
                <h4 class="yx-teacher-praise yx-teacher-praise3 yx-floatl"><?= $teacher['name'] ?>老师好评率详情：<span
                            class="yx-praise-rate">94.8%</span></h4>
                <h4 class="yx-teacher-praise yx-teacher-praise3 yx-floatl"><img src="images/parent.jpg"/>家长满意度：<span
                            class="yx-praise-rate"><?= $teacher_now_satisfy ?>%</span></h4>
                <h4 class="yx-teacher-praise yx-teacher-praise3 yx-floatl"><img src="images/teacher.jpg">班主任考核：<span
                            class="yx-praise-rate">23.7%</span></h4>
                <div class="yx-clear"></div>
            </div>
        </div>
        <div class="yx-class-box">
            <ul class="nav nav-tabs yx-nav-tabs1" id="myTab">
                <?php $i = 1; ?>
                <?php foreach ($student_data['goods_data'] as $k => $v) { ?>
                    <?php if ($i == 1) { ?>
                        <li class="active"><a href="#class<?= $k ?>" data-toggle="tab"><?= $v ?></a></li>
                    <?php } else { ?>
                        <li><a href="#class<?= $k ?>" data-toggle="tab"><?= $v ?></a></li>
                    <?php } ?>
                    <?php $i++; ?>
                <?php } ?>
            </ul>
            <div class="tab-content yx-mt35">
                <?php $i = 1; ?>
                <?php foreach ($student_data['class_data'] as $k => $v) { ?>
                <?php if ($i == 1){ ?>
                <table class="tab-pane active yx-praise-list" id="class<?= $k ?>">
                    <?php }else{ ?>
                    <table class="tab-pane yx-praise-list" id="class<?= $k ?>">
                        <?php }
                        $i++; ?>
                        <caption>
                            <?php foreach ($class_satisfy as $sk => $sv) { ?>
                                <?php if ($k == $sk) { ?>
                                    家长满意度：<span class="yx-color77dc8c"><?= $sv ?>%</span>
                                <?php } ?>
                            <?php } ?>
                        </caption>
                        <tr>
                            <td>序号</td>
                            <td>学员姓名</td>
                            <td>性别</td>
                            <td>年龄</td>
                            <td>课次</td>
                            <?php foreach ($comments_info as $ck => $cv) { ?>
                                <td><?= $cv ?></td>
                            <?php } ?>
                        </tr>
                        <?php foreach ($v as $vk => $vv) { ?>
                            <tr>
                                <td><?= $vk + 1 ?></td>
                                <td><?= $vv['student_name'] ?></td>
                                <td><?= $vv['sex'] ?></td>
                                <td><?= $vv['age'] ?></td>
                                <td><?= $vv['lesson'] ?></td>
                                <?php foreach ($vv['for_value'] as $fk => $fv) { ?>
                                    <td class="yx-goalProgress">
                                        <div class="progress yx-floatl yx-radius5" style="margin-bottom:0;">
                                            <?php if ($fv['for_value'] <= 60) { ?>
                                                <div class="bar yx-radius5 yx-bgff79c5"
                                                     style="width: <?= $fv['for_value'] ?>%;"></div>
                                            <?php } elseif ($fv['for_value'] > 80) { ?>
                                                <div class="bar yx-radius5 yx-bg78dd8c"
                                                     style="width: <?= $fv['for_value'] ?>%;"></div>
                                            <?php } else { ?>
                                                <div class="bar yx-radius5 yx-bg94b5ff"
                                                     style="width: <?= $fv['for_value'] ?>%;"></div>
                                            <?php } ?>
                                        </div>
                                        <h3 class="yx-satisfy-rate yx-color6cd781 yx-floatl"><?= $fv['for_value'] ?>
                                            %</h3>
                                        <div class="yx-clear"></div>
                                    </td>
                                <?php } ?>
                                <td class="yx-goalProgress">
                                    <div class="progress yx-floatl yx-radius5" style="margin-bottom:0;">
                                        <?php if ($vv['satisfy'] <= 60) { ?>
                                            <div class="bar yx-radius5 yx-bgff79c5"
                                                 style="width: <?= $vv['satisfy'] ?>%;"></div>
                                        <?php } elseif ($vv['satisfy'] > 80) { ?>
                                            <div class="bar yx-radius5 yx-bg78dd8c"
                                                 style="width: <?= $vv['satisfy'] ?>%;"></div>
                                        <?php } else { ?>
                                            <div class="bar yx-radius5 yx-bg94b5ff"
                                                 style="width: <?= $vv['satisfy'] ?>%;"></div>
                                        <?php } ?>
                                    </div>
                                    <h3 class="yx-satisfy-rate yx-color6cd781 yx-floatl"><?= $vv['satisfy'] ?>%</h3>
                                    <div class="yx-clear"></div>
                                </td>
                            </tr>
                        <?php } ?>
                    </table>
                    <?php } ?>
            </div>
        </div>
    </div>
</div>